package org.cuatrovientos.erp.model;


import javax.validation.constraints.Size;
import javax.validation.constraints.Min;

public class Role {


private int id;
@Size(min=2,max=30,message="{role.name.error}")
private String name;

@Size(min=2,max=100,message="{role.description.error}")
private String descrpition;



public Role() {
	super();
}



public Role(int id, String name, String descrpition) {
	super();
	this.id = id;
	this.name = name;
	this.descrpition = descrpition;
}



/**
 * @return the id
 */
public int getId() {
	return id;
}



/**
 * @param id the id to set
 */
public void setId(int id) {
	this.id = id;
}



/**
 * @return the name
 */
public String getName() {
	return name;
}



/**
 * @param name the name to set
 */
public void setName(String name) {
	this.name = name;
}



/**
 * @return the descrpition
 */
public String getDescrpition() {
	return descrpition;
}



/**
 * @param descrpition the descrpition to set
 */
public void setDescrpition(String descrpition) {
	this.descrpition = descrpition;
}





}
